package com.studentmanagement.service;

import com.our.learning.infrastructure.pojo.Response;
import com.studentmanagement.dto.StudentDTO;
import com.studentmanagement.po.StudentPO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 实现有关学生的功能
 *
 * @author hexujie
 * @date 2023-06-20 23:16
 */
@Service
public interface StudentService {
    /**
     * 添加学生到系统
     * @param studentDTO
     * @return
     */
    Response createStudent(StudentDTO studentDTO);

    /**
     * 从系统删除学生
     * @param id
     * @return
     */
    Response deleteStudent(Integer id);
    /**
     * 获取学生数据
     *
     * @param stuId
     * @param classId
     * @return
     */
    Response studentList(Integer stuId, Integer classId);

    /**
     * 获取学生学习情况(Learning-Situation)
     * @param stuId
     * @return
     */
    Response getLearningSituation(Integer stuId);

    /**
     * 修改学生信息
     * @param studentDTO
     * @return
     */
    Response modifyStudent(StudentDTO studentDTO);


    List<StudentPO> studentListLocal(Integer stuId, Integer classId);
}
